AddOrUpdate Method

Task Parallel System.Threading

Overload List

  NameDescription
AddOrUpdate(TKey, Func<(Of <(TKey, TValue>)>), Func<(Of <(TKey, TValue, TValue>)>))
Adds a key/value pair to the ConcurrentDictionary<(Of <(TKey, TValue>)>) if the key does not already exist, or updates a key/value pair in the ConcurrentDictionary<(Of <(TKey, TValue>)>) if the key already exists.
AddOrUpdate(TKey, TValue, Func<(Of <(TKey, TValue, TValue>)>))
Adds a key/value pair to the ConcurrentDictionary<(Of <(TKey, TValue>)>) if the key does not already exist, or updates a key/value pair in the ConcurrentDictionary<(Of <(TKey, TValue>)>) if the key already exists.

See Also